/**
 * App js 文件
 */
$(function () {
    //-----------------------------------------------------------------基于layer-----------------------------------------------------------//
    /**
     * layer ifream 宽度
     * @type {string}
     */
    let layerOpenWidth = "90%";

    /**
     * layer ifream 高度
     * @type {string}
     */
    let layerOpenHeight = "90%";

    /**
     * 绑定添加按钮
     */
    $("#addData").click(function(event) {
        /* Act on the event */
        let iframeUrl = $(this).attr('action');
        let addFormLayer = layer.open({
            type: 2,
            title: '',
            area: [layerOpenWidth, layerOpenHeight],
            content: iframeUrl
        });
    });

    /**
     * 编辑数据和展示数据
     */
    $(".editData, .showData").click(function(event) {
        /* Act on the event */
        let iframeUrl = $(this).attr('action');
        let EditFormLayer = layer.open({
            type: 2,
            title: '',
            area: [layerOpenWidth, layerOpenHeight],
            content: iframeUrl
        });
    });

    //---------------------------------------------------------------------基于jqueryConfirm-----------------------------------------------------------------------//
    // $(function () {
    //     $.alert({
    //         title: 'Alert!',
    //         content: 'Simple alert!',
    //     });
    // });




});